Don't mix in user options of printer instances
authorMichael Weghorn <m.weghorn@posteo.de>
Thu, 13 Aug 2015 20:36:05 +0000 (22:36 +0200)
committerMarek Kasik <mkasik@redhat.com>
Thu, 24 Sep 2015 16:14:07 +0000 (18:14 +0200)
GTK+ currently does not support printer instances in the printing
dialog. This commit avoids user options set for specific instances of
a printer being accidently applied to the printer with the same name but
no specific instance defined.

https://bugzilla.gnome.org/show_bug.cgi?id=753628
https://bugzilla.gnome.org/show_bug.cgi?id=582747

modules/printbackends/cups/gtkprintbackendcups.c

index 44868ddec5450d73de9c6914b53c650e3f9f6ec9..60f5263fe94ccd1583567b4838a1824e5cbf7b4f 100644 (file)
@@ -3967,12 +3967,9 @@ cups_parse_user_options (const char     *filename,
       if (!*lineptr)
         continue;
 
-      /* NUL-terminate the name, stripping the instance name */
       name = lineptr;
       while (!isspace (*lineptr) && *lineptr)
         {
-          if (*lineptr == '/')
-            *lineptr = '\0';
           lineptr++;
         }